import vue from '@vitejs/plugin-vue'
import vueDevTools from 'vite-plugin-vue-devtools'
import path from 'path'
import vueJsx from '@vitejs/plugin-vue-jsx'
import createSvgIconsPlugin from './svg-icon'

export default (): [] => {
  const vitePlugins: any = []
  vitePlugins.push(vue())
  vitePlugins.push(vueJsx())
  vitePlugins.push(vueDevTools())
  vitePlugins.push(createSvgIconsPlugin(path))
  return vitePlugins
}
